package com.ruoyi.web.controller.ui;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.system.domain.QtRecommend;
import com.ruoyi.system.service.IQtRecommendService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/exam/recommend")
public class CommendController extends BaseController {
    @Autowired
    private IQtRecommendService qtRecommendService;
    /**
     * 查询推荐列表
     */
    @GetMapping("/list")
    public List<QtRecommend> list(QtRecommend qtRecommend)
    {
        List<QtRecommend> list = qtRecommendService.selectQtRecommendList(qtRecommend);
        return list;
    }
}
